#include <stdio.h>
#include "../inc/setting.h"
#include "../inc/virtual_flash.h"
#include <string.h>


int main()
{
    flash_init();
    setting_load();//参数加载
    dev_show();

    memset(setting.encode.id,0x88, sizeof(setting.encode.id));
    memset(setting.encode.pwd,0x99, sizeof(setting.encode.pwd));
    setting_save();//参数保存

    memset(&setting,0xff, sizeof(setting));
    setting_load();
    dev_show();

    printf("Setting test project!!!!!\n");
    printf("setting size is %d\n", sizeof(setting_t));
    printf("dev_info_t size is %d\n\n", sizeof(dev_info_t));
    printf("-------------------------------------------\n");


    return 0;
}
